# Simple WEB-Applications
## _Example of deploying two simple web applications on the same server behind the nginx proxy server_

![N|Solid](https://secure.meetupstatic.com/photos/event/3/3/e/0/thumb_459373280.jpeg) 
![N|Solid](https://www.logilab.fr/file/1706?vid=download)

![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)

This repository contains the code that launches the terraform manifest, which creates a server on the Yandex cloud, and also creates an entry for the avs-rout for it. You can then run an ansible playbook or add a block to the terraform to run ansible. I prefer to run it manually in this example.


- You can use this as a basis
- You can change the message that the service displays
- You can reuse this code for your purposes

## Features
> Simplicity

> Customizable 

> Easy to read code 

> Scalability

> Wide possibilities

## Dependencies

Of all the dependencies, only installation on ubuntu

## Installation

- Copy your application files on goapp and payapp.py to the root directory. 
- Fill in the required data for yandex clouds and avs route in the terraform variable file. 
- Then run the terraform manifest. Then start the ansible playbook.
- To run an application written in Go, you need to build a binary file

Installation and start go application:

```sh
terraform plan
terraform apply
ansible-playbook -i inventory simple-web-app-install.yml
```

## Maintainer
@alexei.d